
<extend name="Error:base" />
<block name="title"><title>我的购物车</title></block>
		<block name="style2">
			<link href="__PUBLIC__/Home/css/base.css" rel="stylesheet" type="text/css">	
			<style>
				form a{text-decoration:underline;}
			</style>
		</block>		
		<block name="style">
			<link href="__PUBLIC__/Home/css/home_cart.css" rel="stylesheet" type="text/css"><link href="__PUBLIC__/Home/css/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">			
		</block>
		<block name="script2">

<script>
	var COOKIE_PRE = 'F8DD_';
	var _CHARSET = 'utf-8';
	var SITEURL = window.location.host;
	var MEMBER_SITE_URL =  window.location.host;
	var RESOURCE_SITE_URL =  window.location.host;
	var RESOURCE_SITE_URL =  window.location.host;
	var SHOP_TEMPLATES_URL =  window.location.host;
	var PRICE_FORMAT = '&yen;%s';
	Number.prototype.toFixed = function(d)
	{
		var s=this+"";if(!d)d=0;
		if(s.indexOf(".")==-1)s+=".";s+=new Array(d+1).join("0");
		if (new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,"+ (d+1) +"})?)\\d*$").test(s))
		{
			var s="0"+ RegExp.$2, pm=RegExp.$1, a=RegExp.$3.length, b=true;
			if (a==d+2){a=s.match(/\d/g); if (parseInt(a[a.length-1])>4)
			{
				for(var i=a.length-2; i>=0; i--) {a[i] = parseInt(a[i])+1;
				if(a[i]==10){a[i]=0; b=i!=1;} else break;}
			}
			s=a.join("").replace(new RegExp("(\\d+)(\\d{"+d+"})\\d$"),"$1.$2");
		}if(b)s=s.substr(1);return (pm+s).replace(/\.$/, "");} return this+"";
	};
</script>
			<script src="__PUBLIC__/Home/js/jquery.poshytip.min.js"></script>
			<script type="text/javascript" src="__PUBLIC__/Home/js/jquery.mousewheel.js"></script>
			<script type="text/javascript" src="__PUBLIC__/Home/js/dialog.js" id="dialog_js" charset="utf-8"></script><link href="__PUBLIC__/Home/css/dialog.css" rel="stylesheet" type="text/css">
			<script src="__PUBLIC__/Home/js/goods_cart.js"></script>
		</block>
<block name="body">
<header class="ncc-head-layout">
    <div class="site-logo"><a href="/">
				<volist name="service" id="vo">
				<eq name="vo.name" value="net_logo" >
					<if condition="$vo.value neq ''">
					<img src="{$vo.value}" class="pngFix">
					<else/>
						<volist name="service" id="vo">
						<eq name="vo.name" value="net_logo" >
							<if condition="$vo.value neq ''">
							<img src="{$vo.value}" class="pngFix">
							<else/>
							<img src="__PUBLIC__/Home/images/logo.png" class="pngFix">
							</if>
						</eq>
						</volist>
					</if>
				</eq>
				</volist>	
	</a></div>
        <ul class="ncc-flow">
      <li class="current"><i class="step1"></i>
        <p>我的购物车</p>
        <sub></sub>
        <div class="hr"></div>
      </li>
      <li class=""><i class="step2"></i>
        <p>确认订单</p>
        <sub></sub>
        <div class="hr"></div>
      </li>
      <li class=""><i class="step3"></i>
        <p>支付提交</p>
        <sub></sub>
        <div class="hr"></div>
      </li>
      <li class=""><i class="step4"></i>
        <p>订单完成</p>
        <sub></sub>
        <div class="hr"></div>
      </li>
    </ul>
</header>
<div class="ncc-wrapper">

  
<div class="ncc-main">
  <div class="ncc-title">
    <h3>我的购物车</h3>
    <h5>查看购物车商品清单，增加减少商品数量，并勾选想要的商品进入下一步操作。</h5>
  </div>
  <form action="/shop/buy_step1.html?act=buy&op=buy_step1" method="POST" id="form_buy" name="form_buy">

    <table class="ncc-table-style" nc_type="table_cart">
      <thead>
        <tr>
          <th class="w50"><label>
              <input type="checkbox" value="1" id="selectAll">
              全选</label></th>
          <th></th>
          <th>商品</th>
          <th class="w150">单价(元)</th>
          <th class="w100">数量</th>
          <th class="w150">小计(元)</th>
          <th class="w80 tl">操作</th>
        </tr>
      </thead>
     
	  <foreach name="cart_list" item="vo">
	   <tbody>

        <tr>
          <th colspan="20"> <!-- S 店铺名称 -->           
            <div class="ncc-store-name">
				店铺：<a href="/shop/show_store.html?stid={$vo.store_id}" target="_blank">{$vo.store_name}</a>
				<span member_id="{$vo.buyer_id}"><a class="chat chat_offline" title="在线联系" href="JavaScript:chat(2);">离线</a></span>
			</div>          
            <!-- E 店铺名称 --> 
            <!-- S 店铺满即送 -->
<!--              <div class="ncc-store-sale" nctype="get_voucher"> <span>代金券</span>免费领取<i class="icon-angle-down"></i>
              <div class="combobox"><i></i>
                 <div class="combobox-list"> <span class="par">¥10</span> <span class="rule">
                  <p>全店通用，满33.00元可折扣10元</p>
                  <time>限2017-11-03前使用</time>
                  </span> <a data-tid="2" href="javascript:;">领取</a> 
				 </div>
             </div>
            </div> -->
		</th>
     </tr>
	
        <!-- S one store list -->
<!--        <tr class="jjg-xor-outer-true">
		  <td colspan="20" class="td-border-left td-border-rihgt tl">
			<div class="jjg-xor-inner-true">
				<strong>【加价购】</strong>已购满 <span data-jjg-header-mincost="1">68.00</span> 元，再加 <span data-jjg-header-plus="1">169.00</span> 元，点击<a href="javascript:;" data-jjg-toggle="1" class="ncbtn-mini ml5">换购商品<i class="icon-caret-down ml5"></i></a>
			</div>
			<div data-jjg-result="1"> </div>
		 </td>
    </tr> -->
	 <foreach name="vo.son_c" item="svo">
	 
	<tr id="cart_item_{$svo.cart_id}" nc_group="{$svo.cart_id}" class="shop-list ">
        <td class="td-border-left ">
		  <input type="checkbox" nc_type="eachGoodsCheckBox" value="{$svo.goods_id}|{$svo.goods_num}|{$svo.cart_id}" data_chain="0" data_store_id="{$svo.store_id}" id="cart_id{$svo.cart_id}" name="cart_id[]" class="checkbox mt10" data-jjg="{$svo.goods_num}">
	 </td>
    <td class="w100">
		<a href="/shop/goods.html?gid={$svo.goods_id}" target="_blank" class="ncc-goods-thumb">
			<img src="{$svo.goods_image}" alt="{$svo.goods_name}">
		</a>
	</td>
							  
    <td class="tl">
		<dl class="ncc-goods-info">
           <dt>
               <a href="/shop/goods.html?gid={$svo.goods_id}" target="_blank">{$svo.goods_name} <font style="color:red;">{$svo.color} {$svo.spec}</font></a>
		   </dt>
          <dd class="goods-spec"></dd>
                            <!-- S 优惠套装规则 -->
                            <!-- E 优惠套装规则 --> 
              <!-- S 门店自提服务 -->
                            <!-- E 门店自提服务 --> 
              <!-- S 消费者保障服务 -->
                            <!-- E 消费者保障服务 --> 
              <!-- S 商品赠品列表 -->
                            <!-- E 商品赠品列表 -->
       </dl>
	</td>
	
    <td>
	<!-- S 商品单价 -->
       <em class="goods-old-price tip"  title="商品原价格"></em>
       <em class="goods-price">{$svo.m_html}</em> 

       <em id="item{$svo.cart_id}_price" hidden>{$svo.goods_price}</em>
       <em id="item{$svo.cart_id}_points" hidden>{$svo.point_num}</em> 
	   <em id="item{$svo.cart_id}_coins" hidden>{$svo.coin_num}</em> 
            <!-- E 商品单价 --> 
            <!-- S 商品促销-限时折扣 -->            
<!--       <dl class="ncc-goods-sale">
         <dt>商家促销<i class="icon-angle-down"></i></dt>
         <dd>
            <p>活动名称：限时折扣</p>
            <p>满<strong>1</strong>件，单价直降<em>￥59.00</em></p>
        </dd>
     </dl>  -->                    
            <!-- E 商品促销-限时折扣 --> 
            <!-- S 商品促销-抢购 -->                
            <!-- S 商品促销-抢购 -->
  </td>
  <td class="ws0">
	<a href="JavaScript:void(0);" onclick="decrease_quantity({$svo.cart_id});" title="减少商品件数" class="add-substract-key tip">-</a>
    <input id="input_item_{$svo.cart_id}" value="{$svo.goods_num}" bl_id="{$svo.goods_num}" changed="{$svo.goods_num}"  onkeyup="change_quantity({$svo.cart_id}, this, {$svo.colorkey} , {$svo.speckey});" type="text" class="text tc w20">
   <a href="JavaScript:void(0);" onclick="add_quantity({$svo.cart_id});" title="增加商品件数" class="add-substract-key tip">+</a>
  </td>			
  <td class="goods-subtotal">           
	<!--商城价-->	


<if condition="$svo.amount gt 0">￥ <em id="item{$svo.cart_id}_subtotal" nc_type="eachGoodsTotal" >{$svo.amount} </em><if condition="$svo.amount_points gt 0"> + </if></if> <if condition="$svo.amount_points gt 0"> <em id="item{$svo.cart_id}_subpoints" nc_type="eachGoodsTotal_points">{$svo.amount_points} </em> 积分</if><if condition="$svo.amount_coin gt 0"> <em id="item{$svo.cart_id}_subcoins" nc_type="eachGoodsTotal_coins">{$svo.amount_coin} </em> 币</if>

	<!--积分价-->

	
  </td>			
   <td class="tl td-border-right">            
	   <a href="javascript:void(0)" onclick="collect_goods(&#39;100069&#39;);">移入收藏夹</a>
	   <br>
	   <a href="javascript:void(0)" onclick="drop_cart_item({$svo.goods_id},{$svo.cart_id});">删除</a>
   </td>
  </tr>
    </foreach> 
  <tr>
     <td colspan="20"></td>
  </tr>
<!--      <tr style="clear:both;">
	   <td colspan="4"></td>
       <td colspan="3" style="padding: 8px 0px;"><div class="ncc-all-account">商品总价（不含运费）<em id="cartTotal">0.00</em>元</div>
       <a id="next_submit{$vo.store_id}" href="javascript:void(0)" class="ncc-next-submit" style="float:right;">确认订单</a></td>

    </tr> -->
<tbody>
  </foreach> 
 
 
 <tfoot>
     <tr>
       <td colspan="20"><div class="ncc-all-account">商品总价（不含运费）<em id="cartTotal">0.00</em></div>
       <a id="next_submit" href="javascript:void(0)" class="ncc-next-submit" >确认订单</a></td>
    </tr>
 </tfoot>
 
</table>

</form>
  
  <!-- 猜你喜欢 -->
  <div id="guesslike_div"></div>
</div>
<div class="jjg-chooes-box" id="jjg-choose-container" style="top: -1000px; left: -1000px;">
  <div class="title-bar">
    <h3>换购商品列表</h3>
    <a href="javascript:;" id="jjg-choose-container-close" class="close" title="关闭">×</a></div>
  <div class="choose-inner ps-container ps-active-y" id="jjg-choose-container-inner">
    <table>
      <thead>
        <tr>
          <th class="w30"></th>
          <th colspan="2">换购商品</th>
          <th class="w80">换购价格</th>
          <th class="w80">换购数量</th>
        </tr>
      </thead>
      <tbody>
      </tbody>
    </table>
  <div class="ps-scrollbar-x-rail" style="width: 550px; display: none; left: 0px; bottom: 3px;"><div class="ps-scrollbar-x" style="left: 0px; width: 0px;"></div></div><div class="ps-scrollbar-y-rail" style="top: 0px; height: 28px; display: inherit; right: 3px;"><div class="ps-scrollbar-y" style="top: 0px; height: 21px;"></div></div></div>
</div>

<script type="text/javascript">
/*$(function() {

	$("#selectAll").click( 
	  function(){ 
		if(this.checked){ 
			
			$('input[type="checkbox"]').attr('checked', true)
		}else{ 
			$('input[type="checkbox"]').attr('checked', false)
		}

	  } 
	);

	$('input[type="checkbox"]').on('change', function(){ 
	  //calc_cart_price(0);
		 var sise = $('input[nc_type="eachGoodsCheckBox"]:checked').size();
		 var store_id = $(this).attr("data_store_id");
		  alert(store_id);
		 if (sise==0) {
			$('#next_submit'+store_id).unbind('click');
			$('#next_submit'+store_id).on('click',function(){$('#form_buy').submit()}).removeClass('ok');
		 } else {
			$('#next_submit'+store_id).on('click',function(){$('#form_buy').submit()}).addClass('ok');
		 }
		
	  });
	  

});*/



</script> 

</div>     
<link href="__PUBLIC__/Home/css/chat.css" rel="stylesheet" type="text/css">
 <div style="clear: both;"></div>

					

	<object width="1" height="1" style="position: absolute; left: -1px;" id="msg_audio" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
		<param value="" name="movie"><param value="always" name="allowscriptaccess"><embed width="1" height="1" allowscriptaccess="always" src="" name="msg_audio">
	</object>
	<a id="chat_login" href="javascript:void(0)" style="display: none;"></a>
      <script type="text/javascript">
           var LOGIN_SITE_URL = '';
           var CHAT_SITE_URL = '';
           var SHOP_SITE_URL = '';
           var connect_url = "";

           var layout = "layout/buy_layout.php";
           var act_op = "cart_index";
           var chat_goods_id = "0";
           var user = {};

           user['u_id'] = "1131";
           user['u_name'] = "xxss123";
           user['s_id'] = "";
           user['s_name'] = "";
           user['s_avatar'] = "";
           user['avatar'] = "";

           $("#chat_login").nc_login({
              nchash:'a17d73f2',
               formhash:'clVLb2O6fzz7PsS_FRPdVpFb2a2gD73'
           });
    </script>
	<script type="text/javascript" src="__PUBLIC__/Home/js/jquery.charCount.js" charset="utf-8"></script>
	<script type="text/javascript" src="__PUBLIC__/Home/js/jquery.smilies.js" charset="utf-8"></script>
	<script type="text/javascript" src="__PUBLIC__/Home/js/user.js" charset="utf-8"></script>
	<script language="javascript">
		function fade(){$("img[rel='lazy']").each(function(){var $scroTop=$(this).offset();if($scroTop.top<=$(window).scrollTop()+$(window).height()){$(this).hide();$(this).attr("src",$(this).attr("data-url"));$(this).removeAttr("rel");$(this).removeAttr("name");$(this).fadeIn(500)}})}if($("img[rel='lazy']").length>0){$(window).scroll(function(){fade()})}fade();
	</script>
	<div id="cti">
	  <div class="wrapper">
		<ul>
			<li><span class="line"></span> <span class="icon"> <img style="width: 60px;" src="__PUBLIC__/Home/images/7day_60.gif"> </span> <span class="name"> 7天退货 </span> </li>
			<li><span class="line"></span> <span class="icon"> <img style="width: 60px;" src="__PUBLIC__/Home/images/pz_60.gif"> </span> <span class="name"> 品质承诺 </span> </li>
			 <li><span class="line"></span> <span class="icon"> <img style="width: 60px;" src="__PUBLIC__/Home/images/psbf_60.gif"> </span> <span class="name"> 破损补寄 </span> </li>
			 <li><span class="line"></span> <span class="icon"> <img style="width: 60px;" src="__PUBLIC__/Home/images/jswl_60.gif"> </span> <span class="name"> 急速物流 </span> </li>
		</ul>
	  </div>
	</div>
</block>	


